import request from '@/utils/request'

// 查询录音权限列表
export function listVoice_permission(query) {
  return request({
    url: '/ora/voice_permission/list',
    method: 'get',
    params: query
  })
}

// 查询录音权限详细
export function getVoice_permission(id) {
  return request({
    url: '/ora/voice_permission/' + id,
    method: 'get'
  })
}

// 新增录音权限
export function addVoice_permission(data) {
  return request({
    url: '/ora/voice_permission',
    method: 'post',
    data: data
  })
}

// 修改录音权限
export function updateVoice_permission(data) {
  return request({
    url: '/ora/voice_permission',
    method: 'put',
    data: data
  })
}

// 删除录音权限
export function delVoice_permission(id) {
  return request({
    url: '/ora/voice_permission/' + id,
    method: 'delete'
  })
}
